home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / cb / cb.c < prev    next >
C/C++ Source or Header  |  1996-07-23  |  620b  |  25 lines

  1.  
  2. #include "cb.h"
  3.  
  4. int main(int argc, char **argv)
  5. {
  6.     logging(&argc, &argv);      /* determine log-request from -l flag */
  7.  
  8.     startup(argc, argv);        /* initial startup:
  9.                                     read the setupfile, determine the name of 
  10.                                     the tty-line to be used
  11.                                 */
  12.  
  13.     if (argc == 1)              /* parsing succeeded here */
  14.         usage();
  15.  
  16.     argv1len = strlen(argv[1]);
  17.  
  18.     use_ttyline(argv[2]);    /* determine the line, usually in argv[2] */
  19.  
  20.     task(argc, argv);           /* do the appropriate task */
  21.  
  22.     return(0);
  23. }
  24.         
  25.